package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseVendorInfo;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseVendorInfoActionBean;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseVendorInfoCriteria;
import com.redoornetwork.framework.mybatis.service.Service;
import com.yotouch.app.stake.model.Vendor;

import java.util.List;
import java.util.Map;

/**
 * Created by wangjunlei on 2018-03-12 17:30:28.
 */
public interface BaseVendorInfoService extends Service<BaseVendorInfo, String> {

    public BaseVendorInfo getVendorByParams(BaseVendorInfoCriteria criteria);
    /**
     * 状态删除厂商信息
     * @Author zhangYiHang
     * @Date 2018/3/21 9:28
     */
    int updateStatus(String uuid);
    /**
     * 修改厂商信息
     * @Author zhangYiHang
     * @Date 2018/3/21 10:00
     */
    int updateVendorInfo(BaseVendorInfoCriteria baseVendorInfoCriteria);
    /**
     * 新增厂商信息
     * @Author zhangYiHang
     * @Date 2018/3/21 10:18
     */
    int saveVendorInfo(BaseVendorInfoCriteria baseVendorInfoCriteria);
    /**
     * 厂商列表查询
     * @Author zhangYiHang
     * @Date 2018/3/21 10:27
     */
    List<BaseVendorInfo> qryVendorInfo(BaseVendorInfoActionBean baseVendorInfoActionBean);
    /**
     * 厂商列表查询总数
     * @Author zhangYiHang
     * @Date 2018/3/21 10:27
     */
    Long qryVendorInfoTotal(BaseVendorInfoActionBean baseVendorInfoActionBean);
    /**
     * 根据名称或编号查询对象是否存在
     * @Author zhangYiHang
     * @Date 2018/3/26 14:28
     * @Param
     */
    Map<String,Integer> qryVendorInfoByNameOrVendorNo(String name, String vendorNo);
    /**
     * HSF接口调用(前置),查询厂商信息
     * @Author zhangYiHang
     * @Date 2018/3/27 11:31
     * @Param
     */
    List<Vendor> qryVendorInfoToHSF();
    /**
     * HSF接口调用(前置),根据厂商id查询厂商信息
     * @Author zhangYiHang
     * @Date 2018/3/27 15:08
     * @Param
     */
    Vendor qryVendorInfoByVendorUuidToHSF(String vendorUuid);
}
